<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>node 管理后台</title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="robots" content="all,follow">
    <!-- Bootstrap CSS-->
    <link rel="stylesheet" href="/admin/vendor/bootstrap/css/bootstrap.min.css">
    <!-- Font Awesome CSS-->
    <link rel="stylesheet" href="/admin/vendor/font-awesome/css/font-awesome.min.css">
    <!-- Fontastic Custom icon font-->
    <link rel="stylesheet" href="/admin/css/fontastic.css">
    <!-- Google fonts - Poppins -->
    <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,700">
    <!-- theme stylesheet-->
    <link rel="stylesheet" href="/admin/css/style.default.css" id="theme-stylesheet">
    <!-- Custom stylesheet - for your changes-->
    <link rel="stylesheet" href="/admin/css/custom.css">
    <!-- Favicon-->
    <link rel="shortcut icon" href="/admin/img/favicon.ico">
    <!-- Tweaks for older IEs--><!--[if lt IE 9]>
        <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
        <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script><![endif]-->
  </head>
  <body>
    <div class="page">
      <!-- Main Navbar-->
      <% include ./common/header.ejs %>
      <div class="page-content d-flex align-items-stretch"> 
        <!-- Side Navbar -->
        <% include ./common/slider.ejs %>
        <div class="content-inner">
          <% include ./common/crumb.ejs %>
          <section class="tables">   
            <div class="container-fluid">
              <div class="row">
                <div class="col-lg-12">
                  <div class="card">
                    <div class="card-header d-flex align-items-center">
                      <% include ./common/toolbar.ejs %>
                    </div>
                    <div class="card-body">
                      <div class="table-responsive">
                        <table class="table">
                          <thead>
                            <tr>
                              <th>#</th>
                              <th>标题</th>
                              <th>操作</th>
                            </tr>
                          </thead>
                          <tbody>
                            <% for(var i=0;i<page_data.length;i++){ %>
                            <tr>
                              <th scope="row"><%= page_data[i]._id %></th>
                              <td><%= page_data[i].title %></td>
                              <td>
                                <a name="" id="" class="btn btn-danger small" href="<%= '/admin/product/del?dataName=' + dataName + '&start=' + start + '&count=' + count + '&q=' + q + '&rule=' + rule + '&_id=' + page_data[i]._id %>">删除</a>
                                <a name="" id="" class="btn btn-dark small" href="<%= '/admin/product/check?dataName=' + dataName + '&start=' + start + '&count=' + count + '&q=' + q + '&rule=' + rule + '&_id=' + page_data[i]._id %>" role="button">修改</a>
                              </td>
                            </tr>
                            <% } %>
                            
                            <% if(page_data.length==0){ %>
                            <tr>
                              <td colspan="3"><span class="badge badge-dark">无数据</span></td>
                            </tr>
                            <% } %>
                            
                          </tbody>
                        </table>
                      </div>
                    </div>
                    <div class="card-footer">
                      <% include ./common/paging.ejs %>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </section>
          <!-- Page Footer-->
          <% include ./common/footer.ejs %>
        </div>
      </div>
    </div>
    <!-- JavaScript files-->
    <script src="/admin/vendor/jquery/jquery.min.js"></script>
    <script src="/admin/vendor/popper.js/umd/popper.min.js"> </script>
    <script src="/admin/vendor/bootstrap/js/bootstrap.min.js"></script>
    
    <script src="/admin/vendor/jquery.cookie/jquery.cookie.js"> </script>
    <!-- <script src="/admin/vendor/chart.js/Chart.min.js"></script> -->
    <!-- <script src="/admin/vendor/jquery-validation/jquery.validate.min.js"></script> -->

    <!-- Main File-->
    <script src="/admin/js/front.js"></script>
  </body>
</html>